/**
 * Copyright (c) Enalean, 2017 - 2018. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

.dashboard-widget.projectmembers {
    position: relative;
    flex-wrap: wrap;

    > .dashboard-widget-container:first-of-type {
        width: auto;
    }

    .dashboard-widget-icons {
        position: absolute;
        right: $tlp-spacing;
    }
}

.dashboard-widget-content.dashboard-widget-content-projectmembers {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    margin: $tlp-half-spacing $tlp-spacing $tlp-spacing;
}

.widget-project-members-members {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 0 $tlp-spacing;
}

.widget-project-members-members-count {
    margin: 0 0 5px;
    color: $tlp-theme-color;
    font-size: 60px;
}

.widget-project-members-members-label {
    color: $tlp-ui-dimmed;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.dashboard-widget-container.widget-project-members-administrators {
    flex: 5 1 auto;
    width: auto;
}

.widget-project-members-administrators-title {
    margin: 0;
    line-height: 22px;
}

.widget-project-members-administrators-card {
    display: flex;
    align-items: center;
    padding: $tlp-half-spacing $tlp-spacing;
}

.widget-project-members-avatar {
    flex: 0 0 auto;
    margin: 0 5px 0 0;
}

.widget-project-members-spacer {
    flex: 1 1 auto;
}

.widget-project-members-badge {
    margin: 0 0 0 $tlp-spacing;
}
